package com.jtzc.mcp.csdn.infrastructure.gateway;

import com.jtzc.mcp.csdn.infrastructure.gateway.dto.ArticlePublishRequestDTO;
import com.jtzc.mcp.csdn.infrastructure.gateway.dto.ArticlePublishResponseDTO;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;



public interface ICSDNService {

    @Headers({
            "Accept: application/json, text/plain, */*",
            "Accept-Language: zh-CN,zh-Hans;q=0.9",
            "Content-Type: application/json;",
            "Origin: https://mpbeta.csdn.net",
            "Referer: https://mpbeta.csdn.net/",
            "X-Ca-Key: 203803574",
            "X-Ca-Nonce: 119cf2b9-a8b3-462b-bd36-23f5086f5dbf",
            "X-Ca-Signature: zanUsLUzElhNpOxRhzKq0FrvCCM7X+0knNPrgUNWX6g=",
            "X-Ca-Signature-Headers: x-ca-key,x-ca-nonce",
    })
    @POST("/blog-console-api/v3/mdeditor/saveArticle")
    Call<ArticlePublishResponseDTO> saveArticle(@Body ArticlePublishRequestDTO request, @Header("Cookie") String cookie);

}
